package com.jaychen.eureka.enumeration;


/**
 * response code
 *
 * @author longyuan
 */
public enum ServerExceptionCodeEnum {
    SERVER_SUCCESS(200, "请求成功"),
    SERVER_ERROR(500, "系统繁忙，请稍后重试"),
    ILLEGAL_PARAM(4002, "非法参数"),
    ;

    /**
     * 错误码
     */
    public int code;
    /**
     * 消息
     */
    public String msg;

    ServerExceptionCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
